package com.anolesoft.amljmes.billing.service.impl;

//import com.anolesoft.yr.mbus.util.GlobalLoginInfo;
import com.anolesoft.amljmes.billing.controller.DepartmentInfoController;
import com.anolesoft.amljmes.billing.dto.DepartmentInfoDto;
import com.anolesoft.amljmes.billing.service.DepartmentInfoService;
import com.anolesoft.amljmes.billing.service.mapper.DepartmentInfoServiceMapper;
//import com.anolesoft.yr.util.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentInfoServiceImpl implements DepartmentInfoService{
    @Autowired
    DepartmentInfoServiceMapper departmentInfoServiceMapper;

    @Override
    public List<DepartmentInfoDto> queryDepartmentInfo(DepartmentInfoController.DemoVO demoVO) {
        List<DepartmentInfoDto> queryDepartmentDTto = departmentInfoServiceMapper.queryDepartmentSQL(demoVO);
        return queryDepartmentDTto;
    }

    @Override
    public int addDepartment(DepartmentInfoDto inFoDtoParam) {
        int count = departmentInfoServiceMapper.addDepartment(inFoDtoParam);
        return count;
    }

    @Override
    public int updateDepartment(DepartmentInfoDto inFoDtoParam) {
        int count = departmentInfoServiceMapper.updateDepartment(inFoDtoParam);
        return count;
    }

    @Override
    public int deleteDepartment(DepartmentInfoDto inFoDtoParam) {
        int count = departmentInfoServiceMapper.deleteDepartment(inFoDtoParam);
        return count;
    }

    @Override
    public int isDepartmentName(DepartmentInfoDto inFoDtoPara) {
        int count = departmentInfoServiceMapper.isDepartmentName(inFoDtoPara);
        return count;
    }

    @Override
    public List<DepartmentInfoDto> departmentAll() {
        List<DepartmentInfoDto> departmentDtoAll=departmentInfoServiceMapper.DepartmentAll();
        return departmentDtoAll;
    }
}
